When you put the transcript in an external container with data-transcript-div, the "Transcript" h3 is not present anymore and the data-transcript-title attribute has no effect.
Moreover, the role="dialog" is still there on the container even if it's not used as a dialog.