var box = scene.getBoxById("testGadgetInstance"); if (box) { box.importScript("box://app/scripts/myScript.js", "jscript"); }