Updated the way static javascript is loaded