Fix UMD to work with AMD and script loading
Merge pull request #10 from Stuk/umd

Fix UMD to work with AMD and script loading