code: function loadJsFile(file) {
      var modId = path.basename(file).slice(0, -3);
      var mod = require(file);
      modulePath[modId] = file;
      mod.__id = modId;
      return mod;
  }
docs: Performs a require directly on a file A module id is calculated based on the name of the file, e.g. /some/dir/file.js has an id of 'file'. That ID is added as a __id field of the module