Moved all of the js into the html file.