BZ-0000: Fixing reference to this.window