By lowering the pH of the jam mixture and neutralizing the negative charges on the pectin strands, lemon juice allows the jam to set. In order to gelatinize, the pH should be between 2.8 and 3.5. Using commercially bottled lemon juice will help you achieve this pH.