add non-breaking space on title to prevent widows

Turns this: New Screencast: First Ten Minutes with TypeKit Into this: New Screencast: First Ten Minutes with TypeKit

$("h2").each(function() {
         var wordArray = $(this).text().split(" ");
         var finalTitle = "";
         for (i=0;i<=wordArray.length-1;i++) {
            finalTitle += wordArray[i];
            if (i == (wordArray.length-2)) {
                finalTitle += " ";
            } else {
                finalTitle += " ";
            }
          }
          $(this).html(finalTitle);
});