groestlcoin JS implementation (via C -> emscripten -> JS)