$(window).scroll(function () {

IE fix