Changed loading of JS files.