Javascript merge objects without overwriting