fix idle JS timer