Added .jshintrc and fixed linting errors