adjusted timer on js