How do I combine two objects in JavaScript