what color was the jelly? white, clear, beige, pink?? most jelly like substances are mucus or it could even possibly be parasites. after all, a mucus filled bowel is a breeding house for parasites
and all sorts of other gunk so it could be both, but my first guess would be mucus.