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