Added UMD fix

https://github.com/cferdinandi/kraken/issues/92
Merge pull request #16 from cferdinandi/umd-fix

Added UMD fix