use exports object for CommonJS, update RequireJS