javascript map properties from one object to another