Ran index.html through w3c validator, fixed issues found
Ran javascript through JSHint, fixed issues found