What is the intention behind these `scrollIntoView` calls?