Hacky solution to the timer ticking despite being paused when tab is changed