JSHint issue