added support for typeahead.js >= 0.10.0