merge object for nodejs