The button for creating new cells also doesn't work and I think it is bad html form to have spaces in node ids.
I added these lines
script.id = `new-cell-${value}`;
script.dataset.display = `new-cell-${value}`;
And, I'm not sure how necessary but I also added id="viewof-new-cell" to the associated script tag (there was no id) and use that in getElementById (note the dash after viewof)
The button for creating new cells also doesn't work and I think it is bad html form to have spaces in node ids.
I added these lines
And, I'm not sure how necessary but I also added
id="viewof-new-cell"to the associated script tag (there was no id) and use that ingetElementById(note the dash after viewof)