Cleaned up HTML tag.
Extracted javascipt into its own file.