General UMD support
Merge pull request #16 from teppeis/umd

General UMD support