refactor(polyfill) scrollIntoViewIfNeeded