added time delay excercise for javascript