Add JSHint, and fix code style