main.js switches to desktop style if not on mobile