added JS api functions for Countdown component