anchor.diff:                  $("#progress-bar").css("width", data.progress + "%");
               }
   
  -            var resultFailed = function() {
  +            var resultFailed = function(data) {
                   $("#resultHeader").removeClass("success").addClass("failed");
                   $("#resultTitle").text("Failed");
               }
  
positive.code:             var currentFloor = $("#currentFloor").val();
              var params = {source: source, currentFloor: currentFloor};
  
              var resultSuccess = function() {
                  $("#resultHeader").removeClass("failed").addClass("success");
                  $("#resultTitle").text("Success");
  
  
negative.code:                         else{
                              //display the outcome
                              if(data.outcome == "true"){
                                  resultSuccess(data);
                              }
                              else{
                                  resultFailed(data);
                              }
  
                              //show the program output and expected output. TODO: Print out all outputs
  