Changed this to this.element