Fixed a few JSHint warnings.