Move more stuff to JS __widgetOps from WidgetOps.java, simplified it a
bit to prevent double calls to __widgetOps.storeWidget.