switching order of js script loads.