Javascript: add missing semicolons.