Change convertCueToDOMTree to take a string instead of a cue