Fixed JSHint errors.