make typeaheadjs extension compat with current twitter typeahead

Current twitter typeahead is not instantiated with 1 single object. It separates typeahead options from dataset options like this::

jQuery#typeahead(options, [*datasets])

See https://github.com/twitter/typeahead.js/blob/master/doc/jquery_typeahead.md#usage