javascript autocomplete via browser connection