Nothing can help you to present this relationship as hierarchical because it is not hierarchical.
However, you can present any relationship graphically (it it is not too complex to fit on screen :-)). First, describe how you want to see it. I don't think JQuery will help you much. One approach is using plain JavaScript and SVG.
Look at this wonderful sample and the Dracula Graph Library used to build it:
http://www.graphdracula.net/[
^].
It even helps to do automatic routing. Try to drag graph nodes on the rendered image and click "redraw" to see how it works. According to this site, you can download it and use for free even in commercial applications.
—SA