Add jshintrc and fix linting issues