$.ajax({
//…
dataType: 'json'
}).done(function(response){
console.log(response); // посмотрим в консоли, что там
var html ='';
// собираем все ответы в строку
response.forEach(function(msg){ html += msg + '<br>'; });
// выводим на страницу
$('#out').html(html);
});
function pluralize($n, array $forms)
{
return $n % 10 == 1 && $n % 100 != 11
? $forms[0]
: ($n % 10 >= 2 && $n % 10 <= 4 && ($n % 100 < 10 || $n % 100 >= 20) ? $forms[1] : $forms[2]);
}