add .jshintrc and correct corresponding js files