Separated js from the html page