The problem is how browsers work with local scripts getting requests for other assets (scripts, styles, sounds, etc.).
If you’re on Linux, you can start a local HTTP server by running python3 -m http.server in the directory with index.html.
python3 -m http.server
index.html
Since I'm using Windows 11, I'll just play it online. Thank you for your reply!