fix syntax errors in generated js