code: function(script, filename) {
      if(!filename) filename = "openjscad.jscad";
      this.abort();
      this.paramDefinitions = [];
      this.paramControls = [];
      this.script = null;
      this.setError("");
      var scripthaserrors = false;
      try
      {
        this.paramDefinitions = OpenJsCad.getParamDefinitions(script);
        this.createParamControls();
      }
      catch(e)
      {
        this.setError(e.toString());
        this.setStatus("Error.");
        scripthaserrors = true;
      }
      if(!scripthaserrors)
      {
        this.script = script;
        this.filename = filename;
        this.rebuildSolid();
      }
      else
      {
        this.enableItems();
      }
    }
docs: script: javascript code filename: optional, the name of the .jscad file