Added .jshintrc and fixed linting issues