    var audio = new Audio();
    audio.setAttribute('src', //'http://audioplayer.wunderground.com:80/WeatherGoose/Fresno_Hanford.mp3');

    var init = function(){

        // Get the play button and append the audio play method to on click
        var play = document.getElementById('play');
        play.addEventListener('click', function(){
            audio.play();
        }, false);

        // Get the pause button and append the audio pause method to on click
        var pause = document.getElementById('pause');
        pause.addEventListener('click', function(){
            audio.pause();
        }, false);

        // Get the HTML5 range input element and append audio volume adjustement on change
        var volume = document.getElementById('volume');
        volume.addEventListener('change', function(){
            audio.volume = parseFloat(this.value / 10);
        }, false);

        // Duration
        audio.addEventListener("timeupdate", function() {
            var duration = document.getElementById('duration');
            var s = parseInt(audio.currentTime % 60);
            var m = parseInt((audio.currentTime / 60) % 60);
            duration.innerHTML = m + '.' + s + 'sec';
        }, false);

    }


