UMD module/added AMD compatability

Turns the library into an UMD module, so it can be used as AMD module as well.

I also updated the minified version to match.