version 1.2 with autocomplete based on data stored in localStorage