Leave the pan without fire for about 2 minutes, stir in it a little more to leave the foam if it is.
Then pour the jam into dry and clean jars. Put the lid on and tighten it well, set it aside and let it cool down - you don't have to do any other operations - sterilization, etc.