In the form, you can start typing a friend's name, suggestions from your friend's list is offered (even has profile thumbnails), then you can select the profile which appears in the "to" field. There is styling to the selected profile in the input field, so this is not doable with the normal jQuery autocomplete plugin.
I did some search on web but so far I didn't find anything concrete or reliable one.