Get the size of the CSS viewport using JavaScript