var seconds = 60;                           // Countdown time
var countdown = setInterval(timer, 1000);   // Set timer function to run every second

function timer() {
    seconds = seconds - 1;
    
    if (seconds <= 0) {
        saveScore(val);
        console.log(getScore());
        window.location.replace("./score.html");
    }

    document.getElementById("timer").innerHTML = seconds;
}

@@ -11,9 +11,9 @@
 s = 
-6
+3
 0;  

reduced time limit to 30s