fix a tiny regression in JS generation

a semicolon went missing when I was cleaning up
TestModels now compares actual to expected JS

this may help catch regressions in the compiler. but it's also
useful for us to have a corpus of models in JavaScript that
we can look through or grep, for all sorts of reasons