Create a hash value for any javascript object