anchor.diff:   *
    * @return {Canvas}
    */
  -function capture(video, scaleFactor) {
  +
  +
  +    var videoId = 'video';
  +    var scaleFactor = 0.5;
  +    var snapshots = [];
  +
  +
  +    function capture(video, scaleFactor) {
       if(scaleFactor == null){
           scaleFactor = 1;
       }
  
positive.code:     }
  }
  
  
  </script>
  
  <script>
  
  /* Open when someone clicks on the span element */
  function openNav() {
      document.getElementById("myNav").style.width = "100%";
  }
  
  /* Close when someone clicks on the "x" symbol inside the overlay */
  function closeNav() {
      document.getElementById("myNav").style.width = "0%";
  }
  
  </script>
  
negative.code:     return canvas;
  }
  
  // creates canvas element
  
  /**
   * Invokes the <code>capture</code> function and attaches the canvas element to the DOM.
   */
      function shoot(){
      var video  = document.getElementById(videoId);
      var output = document.getElementById('output');
      var canvas = capture(video, scaleFactor);
  