JS scrolltotop on entry's selection