cleaned up html formatting
changed id for main table to class
fixed all jslint errors except 1 + whitespace, method order, and strict

- it complains about a return before an else, which I don't get
added use strict and declared functions at top to satisfy
jslint whitespace warnings fixed