Make an autocomplete words in javascript with AJAX