Added UMD

Support for AMD, CommonJS and browser globals.