Dynamic re-wiring 

var typeahead = $('#search').data('typeahead');