remove conole.log and trailing comma