Preheat oven to 350°F. In a 9x13 pan, line pan with parchment paper and spray with non-stick cooking spray. Set aside.
Melt butter in microwave until melted, or for browned butter, place butter in a saucepan over medium heat and cook until it turns golden brown. Let butter cool before next step.
Using mixer, mix together the cool, melted butter and sugars.
Add eggs and vanilla and beat on medium-high speed until well combined.
Add flour, flour, baking powder, and salt. mixture and mix until thoroughly combined.
Fold in shredded coconut.
Transfer batter into prepared baking pan and spread evenly.
Bake until a cake tester inserted in the center comes out clean, 35-40 minutes. Do not overbake.
Transfer to a wire rack to cool completely before turning out of pan to cut into bars on a cutting board to get nice cuts.