Javascript Countdown Timer with conditions and style changes