HashCode Implementations in JS