Simple Javascript input autocompleter