I am searching jquery autocomplete to search for entities on a server. I would like to be able to create new entities from the search result list by including an item "Create entity" as the last result, or only result when there is no result found. From the docs it looks like I would use the select event to create a new entity when I select "Create entity from the results list. I am, however, a bit unsure about the right way to add this extra item to the list, including when there are no search results.
I am using JQuery UI 1.10