flour is the main ingredient that provides structure in a cookie - without it, there would be no cookie! the gluten in flour forms a web of sorts - the framework that catches the air bubbles/gasses given off during rising.