The lemon juice lowers the pH of the blueberry jam mixture allowing the pectin to form a gel when added to the mixture. This is what gives it that thick jammy finish.