anchor.diff:                              window.recognition.stop();
                           },
                           error: function (response) {
  -                            window.dialog.trigger("error", "Unable to send speech to server.");
  +//                             window.dialog.trigger("error", "Unable to send speech to server.");
                           }
                       });
                  // }
  
positive.code: 
          function stopDialog() {
              in_dialog = false;
              stopRecording(false);
              window.recognition.stop();
              window.dialog.trigger("dialog_ended");
              $.ajax({
  
negative.code:                 if (in_dialog && !window.tts.playing) {
                      startListening();
                  }
              };
              
              window.recognition.onaudiostart = function() {
              	speech_start_timestamp = new Date().getTime();
              	
              };
              
              window.recognition.onaudioend = function() {
              	window.dialog.trigger("error", "sound ended");
              	speech_start_timestamp = new Date().getTime();
              };
  
              window.recognition.onresult = function (event) {
  