Running different js files within the same replit project

Question:
How can use different js files to display different pages
I would like to have different js files drawing different pages for various levels of a game.
I have all the js files in the same replit project but I would like to load one js call/run another js file. I use window.open () function but I cannot see the pages displayed without clicking run each time.

Repl link:
https://replit.com/@trichins2/YourHighness1

code snippet
window.open("https://replit.com/@trichins2/YourHighness2/level2.html", "_self")