You're not getting the element, and the error shows up in the console
Cannot set property 'volume' of null
Move the script to right before the </body>
tag, or do :
window.onload = function() {
var backgroundAudio=document.getElementById("bgAudio");
backgroundAudio.volume=0.5;
}
EDIT:
Nothing is more annoying than disabling right clicks, but anyway, here's what you have
;(function($){
mySong=document.getElementById("bgAudio");
mySong.volume=0.2;
setVolume = function(bgAudio,vol) {
sounds[bgAudio].volume = 0.33;
}
})(jQuery);
now change it to
jQuery(function($) {
$("#bgAudio").prop("volume", 0.2);
window.setVolume = function(bgAudio, vol) {
sounds[bgAudio].volume = vol;
}
});