Cream the butter, peanut butter, and sugars together with a mixer for 2-3 minutes or until fluffy. Add eggs, corn syrup, vanilla—mix until well combined. Then mix in salt and baking soda.
By hand, stir in the oats, chocolate chips, and mini M&Ms until completely combined. Save ¼ cup of the mini M&Ms to top the bars. Cover the dough and refrigerate at least 2 hours (this is not required but your dough will be less sticky).
When ready to bake, preheat oven to 350°. Grease or line two 9x13 inch pans with parchment paper. Spread half the cookie dough into each pan. Press down slightly and sprinkle the remaining M&Ms on the top of each pan. Bake approximately 22-25 minutes or until lightly golden and still fairly soft. The time varies depending on the placement in the oven and type of pan used, so watch carefully. Generally, baking with glass pans takes a little longer.
Let cool slightly on a wire rack before cutting. These are especially delicious while the chocolate is still melty!