Time = (seconds) => {
                    const minutes = Math.floor(seconds / 60);
                    const remainingSeconds = Math.floor(seconds % 60);
                    return `${minutes}:${remainingSeconds.toString().padStart(2, '0')}`;
                };
                
                // Update progress function
                const updateProgress = () => {
                    if (!audioElement.duration) { return; }        // wait until metadata ready
                    const percent = (audioEle