Fixed issue with hash algorithm using Browserify

Fixes #14.
Merge pull request #15 from martinvl/master

Fixed issue with hash algorithm using Browserify