The secret to getting the perfect textured cookie is all in the ingredients. Brown sugar keeps the cookies soft and moist, while white sugar makes them crisp up. The melted butter also adds to the chewy factor. Plus, the cooking time can impact the outcome. Cook the cookies longer for a crispy cookie and shorter for a chewy cookie.