Organised the JS files properly and taken out the inline Javascript