In a medium sauce pan melt the butter and chocolate on medium low heat. Keep stirring until the chocolate has fully melted. Take off heat, and let cool for about 5-10 minutes.
Stir in the granulated sugar and brown sugar until combined. Add one egg at a time, whisking in each before adding the next egg. Whisk in the vanilla extract.