with html5 you can access the audio api
directly, you can do something like below instead of creating object tag for playing the sound:
function doPlay(what){
var snd = new Audio(what); // buffers automatically when created so no delay
snd.play();
}
hope it helps.