Add JSHint support.

Use `npm run check` or `npm run lint`.
Fix a few JSHint warnings.
.jshint.rc: Enable curly rule.
Reindent lib/markdown.js.
Add missing brackets.