Add .jshintrc and fix jshint errors