Corrected some small issues shown by JSHint.