Making trailing commas around objects error