          // Let MOD know when audio is complete
                    player.addEventListener("ended", function () {
                        window.location = "data:,audiocomplete";
                    });
                }
                // Play audio
                player.play();
            }
        }
    </script>

    <audio id="audioPlayer"/>

</body>

</html>
