Add a umd wrapper for commonjs and amd support

So it will work with cjs bundlers like browserify and amd loaders like requirejs. Tested myself with browserify and it works great! Will need to do another grunt build but after that it can be published to npm!