Merge two objects into one object in JavaScript | Example