js timer fix