Revert: use window.width not window.innerWidth