Improvements suggested by JSHint.