Perhaps a solution would be here at this point, as well as setting the found flag, clear the timer?
https://github.com/espruino/EspruinoWebIDE/blob/e974a3c1a0fbe66bdc732886fe11fc5463710d3f/js/plugins/project.js#L52
@Wilberforce started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Perhaps a solution would be here at this point, as well as setting the found flag, clear the timer?
https://github.com/espruino/EspruinoWebIDE/blob/e974a3c1a0fbe66bdc732886fe11fc5463710d3f/js/plugins/project.js#L52