moved minimal js code from external file to admin_footer on widgets.php to reduce requests