What are you using to run the game on android? My guess is that android is using an older version of Javascript and is not compatible with some command I use.
Well I use the latest Android Studio version to generate apk files and run the apks on Nox Player. Nox is a simulator so it should be just like on phones.