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