Preheat the oven to 177°C (350°F). Get a 9-inch square baking pan and line the bottom and sides with parchment paper or aluminum foil. Leave an overhang on all sides. Note 1
In a large bowl, whisk the flour, baking soda, cornstarch, and salt together. Set aside.
In a medium bowl, whisk the melted butter, brown sugar, and granulated sugar together until no lumps remain. Whisk in 1 egg, and 1 egg yolk, and then the vanilla extract. Note that the mixture will be thick.
Pour the wet ingredients into the dry ingredients and mix until combined. Note that the cookie dough will be thick and very soft.
Fold in the chocolate chips. Transfer the cookie dough onto the prepared pan and smooth out evenly.
Press more chocolate chips on top and sprinkle with sea salt. (optional)
Bake for 32-35 minutes. Use a toothpick to test for doneness. It is done when the toothpick inserted at the centre comes out clean. Note 2
Let the cookie bar cool in the pan on a wire rack for 1 hour or so. Lift out of the pan when it has cooled down, and cut into squares. Note 3