Notebook to Vanilla JavaScript Steps

Hi, i’m pretty new in D3 and it’s looks very nice , but i would like to use it in vanilla javascipt way. But it is getting harder. So I have a question ; in the 1. D3 v5 Zoomable Sunburst w/ require() (works), how could i get the result this way : let’s say that all the name displayed on the sunburst are the name of a json file each, how can i get to display a particular file in a div. For now when i click a name i have the zoomable effect, but i need that the same click on the name also open a file in an asynchonous way , file that i would have on local. I have been trying a lot but i got wrong . An idea ? thanks