Hi! By the looks of it, it doesn't seem an issue with the code, but rather with the client side (your device). What device are you running the game on, and on which browser/app? Also, are you running it online, via the html file, or via the apk file?
I’m using it in a browser, and with Chrome, I tried using different things, safari, Firefox, etc, and tried to download and play that way, but it still happens,