// Inserts a non-breaking space before the last 2 words for the specified selectors
$(document).ready(function() {
  var mytext = '';
  $('h1,h2,h3') // Find all content inside these selectors
  .each(function() {
	 mytext  = $(this).html().replace(/ (\S+)$/,'&nbsp;$1');
	 $(this).html(mytext);
  });
});

