Fixed to JSHint warnings.