code: function includeJscadSync(fn) {
  // include the requested script via MemFs if possible
    if (typeof(gMemFs) == 'object') {
      for(var fs in gMemFs) {
        if (gMemFs[fs].name == fn) {
          eval(gMemFs[fs].source);
          return;
        }
      }
    }
  // include the requested script via webserver access
    var xhr = new XMLHttpRequest();
    var url = relpath+fn;
    if (fn.match(/^(https:|http:)/i)) {
      url = fn;
    }
    xhr.open('GET',url,false);
    xhr.onload = function() {
      var src = this.responseText;
      eval(src);
    };
    xhr.onerror = function() {
    };
    xhr.send();
  }
docs: Include the requested script via MemFs (if available) or HTTP Request  (Note: This function is appended together with the JSCAD script)