remove console log an trailing comma