Reactive documents with equations and visualizations