Complex sentence: Electrolytes within the cells allow ions to move between the electrodes and terminals, which allows current to flow out of the battery to perform work.
Split into simpler sentences: Electrolytes within the cells allow ions to move within the battery between the terminals. It is the movement of those ions within the battery which allows current to flow out of the battery to perform work.