fix javascript countdown