Replace depreciated setters & getters with new.

Replace depreciated __defineSetter__ and __defineGetter__ with
Object.defineProperty.
Merge pull request #15 from YodaDaCoda/master

Replace depreciated setters & getters with new API.