Fix issues found by JSHint.