Fix jshint errors and add .jshintrc