Add complete .jshintrc from JSHint repo
Set JSHint options and fix problems in index.js