Use less flour to make cookies chewy rather than cakey. Also, making cookies with brown sugar adds moisture to the cookies which also helps with the chewy texture.