add countdown javascript function