Substance used for setting jams and jellies