Update for document.body.clientWidth/document.body.clientHeight (document.width and document.height are no longer supported)