The lemon juice helps with the setting process and adds a bright flavor. You can omit it, but the jam may be sweeter and less firm.