Updated way js files are loaded, to fix bug/breakage with admin widgets page