Awesome, it works, i just replaced the two events with the ontouchstart and ontouchend and it did wonders.
Btw, what did you use to edit the JS file? I tried Notepad++ and it just died on me and I managed to edit it using VS Code but it was slow af.
Aside from having a god-mode PC (I often go hungry...*whimper!*), I simply used a binary editor. They're most useful for editing/viewing large files. There is an exception I have depending on platform. When I was on Windows, I often used the best editor I ever found, especially for dealing with very large files (GBs!): EmEditor. I used to crack it every update, but now I use Linux. I love everything about Linux (free, open source, complete control), except the text editors suck ass. I can't even open some tiny files (1MB!) without the editors being a complete shit-show, even with all plugins disabled and no syntax highlighting. One of the few things I missed about reverse-engineering on Windows. (Also the very easy integration of a number of debug tools and unpackers.)
For Windows, HxD is a free, AWESOME and clean hex editor for binary files or drives, including binary comparison of files! You can also use EmEditor for a genuine text editor that can handle extremely large files. Comparing text files? Try Meld. Can lag for large stuff, but the line-by-line stuff can be great. That supports Linux, too.