building a countdown timer with javascript