clean up widgets.js