Changed algorithm in js countdown
Some more minor changes for js countdown algorithm improving purpose