Small vexflow extension

I wanted to generate some vexflow code and decided to introduce a new 
output mode "jsbody" in addition to the existing "txt" and "html" formats.
While doing so, I did some minor clean-up and added a few tests.