Wysihat-extended-demo is a project mainly written in JavaScript, it's free.
I needed a way to fiddle around with the WYSIHAT editor
See https://github.com/josh/wysihat