// CHECKS IF USER IS ON DESKTOP if (screen.width > 699) { location.href = '/'; }