change to timing on js