I have made some fixes and tweaks to it on my own version to make it work better. I'll share it here when I have some time, if your want to use it
(I didn't care about looks, so it's a mess, but the idea is the important)
A quick list of what I modified:
Dialogs and windows "magneted" to the side of the screen will follow/stay on the edge even after screen resize
A small button for the chat window to disable battle mode (on smartphones it was impossible once the keyboard closed)
Reworked the battlemode and made it work on all 4 skill bars (There was a basic design flaw in the implementation. It couldn't handle multiple events attached to the same base letter, eg: E and CTRL + E)
Inverted touch zoom (it was inverted)
Increased zoom distance and modified the intersection search to make it work properly
Adjusted the default camera height to match official (45° -> 50°)
Unicode chat fixed. The text was not appearing when unicode character was sent in the sentence (I added my own langtype with the proper encoding. Todo: default wrong characters to "ballot box" ☐ to prevent losing all the sentence)
Known issues by me (the first is due to the BM modifications)
Writing in NPC dialogs activates the sills through battle mode (need to block it)
During NPC dialog the player can move
Animation delay based skills such as sonic blow, cross impact have absolutely no delay and can be infinitely chained even multiple at once
Object/sprite rendering on android/ios browsers is distorted, the object flash back and forth though the terrain (wrong depth, possibly rounding/decimal error due to different browser engine implementations)
Using fakename and typing in the chat will disconnect the player, because the chatacter sends the message packet with the fakename and the server disconnects the client for security
Getting multiple items at the same time with script will display the name of the last item, but the image of the first item.