Create javascript object equality