code: async function(data) {
        let t = this;
        let result = {};
        return new Promise((resolve, reject) => {
          async.forEach(data.libraries,
            function(path, cb) {
              t.__addLibrary(path, result, cb);
            },
            function(err) {
              if (err) {
                reject(err);
              } else {
                resolve(result);
              }
            });
        });
      }
docs: Scan all libraries and add the namespace to globals