This method returns the viewport height across different browsers and devices. It worked fine for me before but gut feeling tells me that this method might be wrong sometimes and there should be a better way to do it. Does anyone have a better idea? I'll be looking for other solutions meanwhile.