update the scrollIntoView method to use plain javascript instead of
jQuery.