It's probably the greatest commandment of chocolate chip cookie making, to not overbake the cookies, because it is taking them out when they are slightly underbaked that gives them the perfect, super soft texture. If you were to eat one immediately after removing from the oven, it would look undercooked inside, but once they have had time to set, the center will firm up perfectly.