I don't think we should be doing any logic other than e.g. setting the highest-level parameters (maybe max n and es?) in index. Ideally, we would just:
- Define the bare minimum of parameters
- Create the SVG on the page (could be done statically in HTML)
- Call a
createViz() function, passing in max n, max es, the SVG, and other parameters.