QUEST loop not terminating online

Answering my own question here :joy:… but it might be useful for others. Found a solution by @alyd in their post here:

Basically you need to pass an additional parameter (maxTrials) to the stair handler. You can edit the js file directly or add it via the Builder as shown below, although doing it this way will give an error if you try and run it locally.