Major Linting

Went to jslint and went crazy for a half an hour fixing stuff.