Enable JSHint rule to detect trailing whitespace.
Enable more JSHint checks.
Fix JSHint regressions in master.