Using Object.defineProperty to overwrite response