add timer to js env