Cornstarch, also called corn flour, is added to chocolate chip cookies to give them a chewier and lighter texture. When you use flour on its own the cookies turn out more dense and heavier.