var audio = document.getElementById("musicPlayer");
audio.addEventListener('ended', function () {
nextPlayMusic();
})
var audio = document.getElementById("musicPlayer");
audio.removeEventListener("ended", function() {});
audio.addEventListener('ended', nextPlayMusic);
audio.removeEventListener('ended', nextPlayMusic);