Fix UMD build
Merge pull request #1290 from thejameskyle/umd

Fix UMD build