Add .jshintrc file
Fix a few jshint warnings