remove widgetinstanceid usage in js