Image may be NSFW.
Clik here to view.
VexFlow is an open-source web-based music notation rendering API. It is written completely in JavaScript, and runs right in the browser. VexFlow supports HTML5 Canvas and SVG.
VexFlow is distributed under the MIT license, and all the code is available at the VexFlow GitHub Repository.