Object.create() : not working