Created a seperate file for the javascript