Why not just create a timer in JS that waits for how ever long the song is, ends the song, and then starts it again?

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -Rick Cook