Added jshint, add misc linter fixes

Note: this turns on strict mode. Because it’s important. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions_and_function_scope/Strict_mode