Scroll history solution with cookies.
Scroll history cookie solution(cont.)