Remove use of Object.defineProperty

Remove use of Object.defineProperty in order to support IE8