fix a tiny regression in JS generation

a semicolon went missing when I was cleaning up