Remove trailing comma in object definition