Workaround a setInterval call bug in Firefox