   var recorder = new Recorder(options);

        pause.addEventListener( "click", function(){ recorder.pause(); });
        resume.addEventListener( "click", function(){ recorder.resume(); });
        stopButton.addEventListener( "click", function(){ recorder.stop(); });
        start.addEventListener( "click", function(){ 
          recorder.start().catch(function(e){
            screenLogger('Error encountered:', e.message );
          });
        });

        recorder.onstart = function(e){
          sc