How to merge two object and returned combined object using javascript