Add the scrollIntoView function