Delay, Sleep, Pause, Wait in JavaScript - working demo