document.ready typeahead fix