Add jsxhint and fix all lint errors

Lint checks will now run after the tests on Travis. This will be helpful for making sure we `"use strict"` in all our files, etc.

Let me know if any of the changes don't make sense.

Fixes #215 
doesn't matter, so long as it's the first statement in a scope.

want me to remove it?