[js] assignment of widgets on variables