Changed alert to document.documentElement.clientWidth