// Function to trigger the screen shake (using older syntax)
function triggerScreenShake() {
// Use 'var' instead of 'const'
var body = document.querySelector('body');
// Add the shake-screen class
body.classList.add('shake-screen');
// Use a standard function instead of an arrow function for setTimeout
setTimeout(function() {
body.classList.remove('shake-screen');
}, 500);
}