Workaround for jQuery height bug when zoomed in iOS

Using window.innerHeight where available because on iOS an incorrect
value is returned for $(window).height() when zoomed.