Move audio.onended to audio player