JSFiddle - React, Tailwind, and code Playground

HTML

<script>
SM2_DEFER = true;
</script>
<script src='https://github.com/scottschiller/SoundManager2/raw/V2.97a.20110424+DEV/script/soundmanager2.js'></script>

<input type="button" onclick="handler();" value="click me" />

JavaScript

window.addEvent('domready', function() {

    if (SM2_DEFER) {
        soundManager = new SoundManager();
    }
      
    soundManager.url = 'http://quizlet.com/i/sm2-v3/';
    soundManager.debugMode = true;
    soundManager.flashVersion = 9;
    
    if (SM2_DEFER) {
        soundManager.beginDelayedInit();
    }
    
    soundManager.ontimeout(function() {
        console.log('ONTIMEOUT CALLED!!!');
        soundManager.someOtherError = true;
    });
    
});

function handler() {
        
    soundManager.createSound({
        id: 'test',
        url: 'http://v.quizlet.net/en.mp3?b=RmxvcmlkYQ&s=0Ii77tgu',
        type: 'audio/mp3'
    }).play();
    
}