updatd javascript for correct countdown time