Use portable $(window).innerHeight() for IE8.