Replace depreciated setters & getters with new.

Replace depreciated __defineSetter__ and __defineGetter__ with
Object.defineProperty.