CountDown rewritten to handle insert functionality int $scope.CountDown