add window.pageX/YOffset fallback for IE compatibility