scrypt key derivation function in Javascript