Uses a module wrapper to allow AMD or Node.js/browserify module loaders.