Updated HTML file with scripts running at end of page.

All scripts have now been moved to the bottom of the page to guarantee
that elements are defined prior to the script executing.