Fixed: page jumps up/down when using arrow keys

When using the up and down arrow keys the page is scrolled repeatedly.
This fix checks if autocomplete selection is in browser viewport and
scrolls page only needed.