Cancel/kill window.setTimeout() before it happens

Solution 1:

var timer1 = setTimeout(function() { removeStatusIndicator(); }, statusTimeout);

clearTimeout(timer1)

Solution 2:

The window.clearTimeout() should do what you are trying to achieve.