More flexible UMD for CommonJS

Resolves gh-2
Update UMD for AMD/RequireJS
Merge pull request #3 from es128/patch-1

More flexible UMD