You can modify results that come back from the server with a preProcess function on ajaxOpts.

The function should return an array of Option Objects.

In this example the server is returning a nested object of countries indexed by abbreviation. The createCountryOptions function turns this into an array of Option Objects.