javascript autocomplete textbox from array