replaced depricated __defineGetter__ with defineProperty

changed reference to this inside defineProperty

removed old __defineGetter__ method