Manipulating ingredients in a cookie can tip the balance between crispy and chewy.