Sorted out loading the JS files