The cold water in the water jacket is needed or the whole thing fails. It is needed because once the water in the flask is boiled, the water turns into steam and gas is left. The cold water condenses the gas and allows it to turn back into water which then is clean and safe. The beaker at the end catches the water. Eventually, all that’s left is salt in the flask.