reverted implementation and made 'writable' attribute true
added Jasmine to do unit test