o Added a heatbugs-like JavaScript model

I don't know if you're interested in this.  But the sketches/jsmodel.html didn't go quite far enough for me.  My playing around lead me to this model and I thought it might be helpful for others.
Probably should be `var myModel =` no?