Update widgetMethods.js