You can dynamically load in JavaScript from other JavaScript code. This is a simple implementation but good enough to hit the ground running.
The import(module) expression loads the module and returns a promise that resolves into a module object that contains all its exports. It can be called from any place in the code.