function startTimer(sectionId) {
  document.getElementById(sectionId).getElementsByTagName('timer')[0].start();
}

function stopTimer(sectionId) {
  document.getElementById(sectionId).getElementsByTagName('timer')[0].stop();
}

function stopResumeTimer(sectionId, btn) {
  if (btn.innerHTML === 'Start') {
    document.getElementById(sectionId).getElementsByTagName('timer')[0].start();
    btn.innerHTML = 'Stop';
  }
  else if (btn.innerHTML === 'Stop') {
    document.getElementById(sectionId).getElementsByTagName('timer')[0].stop();
    btn.innerHTML = 'Resume';
  }
  else {
    document.getElementById(sectionId).getElementsByTagName('timer')[0].resume();
    btn.innerHTML = 'Stop';
  }
}
angular.module('timer-demo',['timer']).controller('TimerDemoController',['$scope',  function ($scope) {
    $scope.linkAnchors = function () {
        $('ul.nav a').click(function (){
            var path = $(this).attr('href');
            if (path != '#') {
                window.location = path;
            }
        });
    };
}]);

@@ -217,24 +217,167 @@
 .stop();%0A%7D%0A%0A
+%0Afunction addSeconds(sectionId, extraTime) %7B%0A  document.getElementById(sectionId).getElementsByTagName('timer')%5B0%5D.addSeconds( extraTime );%0A%7D%0A%0A
 function sto

add addSeconds functionality to docs