Using Object.defineProperty since __defineGetter__ is deprecated. See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineGetter
Merge pull request #4 from bdadam/master

Using Object.defineProperty since __defineGetter__ is deprecated.