In a medium saucepan, melt chocolate and butter over medium heat, stirring frequently to prevent scorching, until chocolate is melted and smooth. Remove from heat, and whisk in sugar, cocoa powder, and salt. Let cool to room temperature before using.