code: function define(id, deps, exp) {
  		if (!exp) { exp = deps; deps = [ 'require', 'exports', 'module' ]; }
  		var module = getModule(undefined, id);
  		module.children = map(deps, function(dep) { return getModule(module, dep); });
  		module.loaded = true;
  		factories[id] = exp;
  		fireWaits(module);
  	}
docs: define a new module