Compare two Objects (javascript)