Add JSHint support via `npm run lint`.

Also, fix the JSHint warnings.
Update README.md.
Rename variable for consistency.
Rename variable for consistency.
Add jshint check in npm test command.
Update dependencies.