Add jshintrc.
Fix jshint warnings.