Browser engines and JavaScript engines are complicated to use. I have first hand experience trying to integrate a JavaScript engine into an application which I was developing. I tried to use SpiderMonkey but needed to switch to V8 back then.
https://tube.jeena.net/w/vHpzYgZ8xQAemZ932guaWw
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!