Added frontend and admin JS for widgets.