Switch to AJAX method for outputting title