UMD support

Awesome plugin. It'd be great to have out-of-the-box support for commonJS and AMD so I don't have to rely on globals.