Lint

Working towards removing all JSHint errors so that we can check that as a test for future PRs.
hooray, slowly we fix up this cluster of a console