Fix missing and redundant semicolons in js output.