Adding jshint and fixing linting issues