JS implementation of various non-crypto hash functions.