Changed: More elegant way to get browser height