Tangle is a JavaScript library for creating reactive documents.
Another cool experiment with the graph example given there: <a href="http://worrydream.com/ExplorableExplanations/" rel="nofollow">http://worrydream.com/ExplorableExplanations/</a> — go down to the guitar icon (or find "incidentally" on the page).