added throttle to window.scroll function