js to tab through list of candidates for autocompletion (sort of how windows does it)