Unfortunately, I was unable to replicate the problem on any of my devices or browsers, so I had to go off guesswork. I've made some changes that, with any luck, may have solved the problem.
If not, I've made a .exe version of the game available for download, which hopefully shouldn't have the same issue.