updating widgets.js and adding minified version when in non development mode