Hello,
Looking at your JS code, it doesn’t look like the buttons are being declared.
When I need to work online with buttons, I use a polygon and text over it. As much as I know, buttons are not yet supported online:
https://www.psychopy.org/online/status.html
I am unsure if it was updated, but it might be the issue.
Chen