Added a countdown-latch using angularJs