Lint

Working towards removing all JSHint errors so that we can check that as a test for future PRs.
Perhaps in a future commit; I think it's ok for now.