Add .jshintrc, update code according to linting