Add `this.` in front of `window` to facilitate unit testing with mocks.