Trying to fix JS timers