Fix UMD import to work in a variety of different situations

* See: https://github.com/umdjs/umd
Merge pull request #18 from gf3/fix-umd-export

Fix UMD import to work in a variety of different situations