In the future if you can sheat in the main as tight as you can, this will keep you headed into the wind, The jib should go loose and be easier to free.
!! WARNING !! The above information is to be used by intelligent people only. If you are Stupid, could be considered a moron, or otherwise. You are instructed to disregard this information and seek the help of a licensed and bonded professional.