Reference the source code. All the doLoop() function does is wait for a link
to be clicked before resuming program execution. This can be used as a "wait"
control in Javascript games against computer players to prompt you when it's
your turn to click an object and proceed with program execution.