add .jshintrc and fix issues