anchor.diff:              $("#curlCommand").val(commandLine);
           }
   
  +        //http://stackoverflow.com/questions/17564103/using-javascript-to-download-file-as-a-csv-file
  +        function downloadResponseData() {
  +            responseDownload=document.createElement('a');
  +            responseDownload.download="response";
  +            if (originalResponseFlag == 1) {
  +                responseDownload.href='data:text/json;charset=utf-8,' + historyData.history.originalResponseData;
  +            } else {
  +                responseDownload.href='data:text/json;charset=utf-8,' + historyData.history.responseData;
  +            }
  +            document.body.appendChild(responseDownload);
  +            responseDownload.click();
  +        }
  +
           var historyData;
           function loadData(historyId) {
               $.ajax({
  
positive.code:                         }
                          $("#showRawFormattedDataButton").removeAttr("disabled");
                      }
  
                      showModifiedRequestData();
                      $("#responseHeaders").val(data.history.responseHeaders);
  
negative.code:         }
          
          function showModifiedResponse(){
              originalResponseFlag = 0;
              $("#responseHeaders").val(historyData.history.responseHeaders);
              if(historyData.history.responseContentType == null ||
                  historyData.history.responseContentType.toLowerCase().indexOf("application/json") == -1 ||
  