Seperated the JS file from the HTML file