JavaScript port of RoboHash