Slight re-work to persistScrollPosition()