changed min_device_width() for window.innerWidth