Fix trailing commas in JS