document.width to window.innerWidth