put the autocomplete in a doc ready