Replace __defineGetter__ with Object.defineProperty

closes #2162