http://www.oreillynet.com/pub/a/javascript/excerpt/learnwebdesign_chap22/index.html
Explanation of how to play sounds in many different ways, incl Javascript