Merging two js objects without jquery