This might help, too:
http://0xfe.blogspot.com/2010/05/music-notation-with-html5-canvas.html