Where would you host the script? If it’s expected that the server that fires it off is always online and performing health checks, why not have it host a load-balancer? Or another local instance of the website? It’s something fun to play around with, but if this is for anything beyond a fun exercise there are much better ways to accomplish this.
I tried so many trackballs before settling on the Elecom Huge. I really wanted to like the Kensington, but I think it would be infinitely more useful if it had both a thumb scroll and the orbital scroll.
My current setup for reference: