Added UMD fix

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

Added UMD fix