Getting jam to set properly is a matter of adding just enough sugar, acid, and heat to the mix. Here are the hows and whys.