Countdown timer functionality in js.