Javascript Object.definePropery() method