Preheat oven to 350°F. Line a 9 inch pie dish with a round of parchment paper and lightly grease the dish. Set aside.
With a hand mixer or stand mixer, beat butter and sugars on medium speed for about one minute, until smooth and creamy. Add egg and vanilla extract, and beat to combine, scraping the sides of the bowl as necessary.
In a separate bowl, combine flour, cornstarch, baking soda, and salt. With the mixer on low, slowly add the flour mixture to the wet ingredients, beating until combined (about a minute). By hand, stir in chocolate chips and M&M's (if desired you can reserve a few M&M's to press onto the top of the cookie).
Evenly press the dough into the prepared pie dish. The dough will be thick and sticky. Wet your fingertips with a little water (if necessary) to help flatten the dough into the dish. Lightly press the reserved M&M's on top.
Bake for 20-25 minutes, until the edges are beginning to turn light golden brown and the very center is still a bit underdone. Place on a wire rack to cool completely.