JavaScript : HMAC using weak hashing algorithm