"Jnana" is a generative musical accompaniment system integrated into Ableton Live.  Entirely written in JavaScript, can be easily repurposed for other JS environments.