Added UMD structure fixes

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

Added UMD structure fixes