move javascript countdown to ext file