[javascript] How to duplicate object properties in another object?