// ajax-updater.js
setInterval(() => {
    fetch('/tracklogger.php')
        .then(r => r.json())
        .then(data => {
            // Optional: log to console for debugging
            console.log("TrackLogger:", data.track);
        })
        .catch(err => console.error("TrackLogger error:", err));
}, 15000);
