How to insert a "Finished message" in an AJAX script

How to insert a "Finished message" in an AJAX script

When the loop in this demo,  http://www.toddcary.com/test/ajax3/index.php , finishes, I would like to display "Finished".  Since I am such a newbie, I am not sure how/where to put that code in the following:

  1.     $(document).ready(function()
  2.     {
  3.     // Hide the results
  4.     $( "#send_results" ).hide();
  5.     //kick off the process
  6.     $('#startButton').click(function(event) {
  7.       $.ajax({         
  8.       url: 'send_email.php',         
  9.       success: function(data) {}     
  10.     }); 
  11.     //start polling
  12.     (function poll(){
  13.        setTimeout(function(){
  14.           $.ajax({ 
  15.              url: "get_progress.php", 
  16.              success: function(data){
  17.                  // Show the results
  18.                  $( "#send_results" ).show();
  19.                  //Update the progress
  20.                  if (data.length > 0) {
  21.                    $("#send_results").html(data);
  22.                  } else {
  23.                    $("#send_results").html("");
  24.                  }
  25.                  //Setup the next poll recursively
  26.                  poll();
  27.              }, 
  28.              dataType: "text"
  29.          });
  30.       }, 3000);
  31.     })(); // Polling   
  32.     });  //Start button pressed 
  33.     }); 
  34.     </script>
I was able to stumble my way to get the above...now I am stumpted.

Any suggestions are welcomed...

Todd