Experiment with snap.svg. Trying to create a mind map editor using SVG to render the links between nodes.