observablehq to javascript

Using vanilla Javascript and Javascript modules this works well: