$(window).height() requires a doctype tag.