Quark hashing function for node.js. Useful for various cryptocurrencies.