Update document.width and document.height to use document.body.clientWidth and document.body.clientHeight instead