Insert the correct title on ajax