and I was trying bootstrap's typeahead for the autocomplete thing, but found it doesn't allow to customise the data structure.