Web button controling servo ->quick code fix

Job ID: 34059113

Budget: $10 – $30 USD

Hi,
I've got code controling servo & led lights in sequence.
Few phisical buttons with different timings, all working perfect.

I'm now trying to replicate this on web server via WiFi.
I came across code which I adapted, as it covers what I'd need without going into java & html nuances.

First 2 web buttons with single servo moves work nicely.
Issue is with button3 which does not get past first servo command & than does not proceed.
Even after button3 fail, buttons 1&2 work properly.

I presume it some sort of assync web syntax limitation.
Please help find the right solution, I've spent few nights on this already...

If not a fix, alternative web button solution are also welcome.
Related categories: JavaScript C++ Programming HTML Arduino