Vanilla JS auto-completing with lookahead dropdown