Replace scrollIntoViewIfNeeded to jQuery scroll