Preheat the oven to 325 degrees. Line two baking sheets with parchment paper, and set them aside.
Add the chocolate chips and butter to a microwave-safe bowl. Microwave for 30 seconds at a time, stirring in between each heating, until everything is melted. Set it aside.
In a mixing bowl, beat the brown sugar, sugar, eggs and vanilla for a couple minutes until the mixture is light yellow and well combined.
Beat in the melted chocolate mixture, baking powder, salt and flour until the dough is smooth, and then fold in the M&Ms.
Using a cookie scoop (I used a two-inch scoop), place scoops of the dough onto the prepared baking sheets, keeping them about two inches apart.
Bake for 12 to 15 minutes or until the tops and edges of the cookies are set. Let them cool, and then store the cookies in an airtight container.