I have a similar problem: I want to pass a string to a div outside my game.
I figure I can do this with the Execute Javascript expression, but I guess the correct way of doing it (putting aside all the problems of accessing stuff outside the c2 canvas) is through a plugin.
If you have anything to share on how you did the basics, that would mean a lot.
Thanks