First off, you'll want to include kind="module" while in the aspect, to declare this script like a module. To import the most crucial.js script, we use this: You can even embed the module's script instantly in to the HTML file by placing the JavaScript code in the system of the aspect: If a module JAR is placed on the module route (see down below