Autocomplete text in textboxes - pure Javascript