Fixed bug where Widget.prototype.element was returning this.element rather than this._element, leading to infinite recursion.