fix ripemd160 for browser and add tests
Merge pull request #105 from maraoz/bug/ripemd160-fix

fix ripemd160 for browser and add tests