Added UMD

Now can be used with Browserify or RequireJS and as a global.
The diff is kinda messed up, b/c of indentation changes.