JSHint code cleanup