code: function define(id, deps, callback) {
    if (isBrowser && _global.document.currentScript) {
      const nameSpace = _global.document.currentScript.getAttribute('data-namespace');
      if (nameSpace) {
        return nameSpacedDefine(nameSpace, id, deps, callback);
      }
    }
  
    currentSpace.define(id, deps, callback);
  }
docs: AMD define