changed how external js is loaded