IE8 compatability fix for missing window.pageYOffset