Changed window.innerHeight to $(window).height() to account for IE bug

IE bug left `window.innerHeight` as 'undefined'.