How to Check if Two JavaScript Objects Have the Same Values