How to code audio for HTML5 and Javascript games

Reference with code

 * Beginning Game Development with HTML 5.Lesson 5 - Music and Sound Effects