Export widget_id to JS to cleanly find element

Use new getControlInstanceForWidget API to find control instance for given widget rendered in sidebar