Separated HTML from the Javascript and updated styles