Added support for module loaders.
added umd wrapper