Move JS out of HTML and remove XHTML because it's dead.