Added JS hashing library and crypto functions