Widgets: Replace references to $.mobile.window and $.mobile.document with this.window resp. this.document.