title: How to use clearTimeout
body: <p>I am new to javascript and Meteor and trying to clearTimeout on a function of a function.</p>
  
  <p>The console states cannot find property of. I did not write the code so I am at a loss of how to stop the timer.</p>
  
  <p>Any suggestions are appreciated!
  Code:</p>
  
  <pre><code>function startTimer(){
    start = new Date().getTime();
    time = 0;
    elapsed = '0.0';
  
      function instance(){
         time += 100;
         console.log('instance started');
         elapsed = Math.floor(time / 100) / 10;
         if(Math.round(elapsed) == elapsed) { elapsed += '.0'; }
            document.title = elapsed;
  
         var diff = (new Date().getTime() - start) - time;
         window.setTimeout(instance, (100 - diff));
      };
    window.setTimeout(instance, 100);
  };
  
   function stopTimer() {
     clearTimeout();
   };
  </code></pre>