separated out the v8 value hasher for use in hashtable module