Pulled out JS from INDEX.html & put into seperate file