Change method for compatibility

https://developer.mozilla.org/en-US/docs/Web/API/element.scrollIntoView