$(inp).autocomplete({
source: function(request, response){
$.post('url', {queryString: word}, response, "json");
return response;
};
}).autocomplete( "instance" )._renderItem = function( ul, item ) {
return $( "<li><span class='bysides'><div>" + item.one +
"</div><div>" + item.two + "</div></span></li>" )
.appendTo( ul );
};