How to add and remove the property of the object in JavaScript ?