Beat softened butter and cocoa powder. Once combined, add the melted chocolate, salt, powdered sugar and root beer. Beat together until smooth. Spread on top of cooled cake.