Best way to integrate 3rd party HTML5/JS applications?

Thanks for the quick reply. That tutorial helped a lot.

My issue now is that GoDiagram requires a div id handed over. In the tutorial a domid is handed over and as a result a Canvas is created with that id:

<canvas id="foo"></canvas>

In the JavaScript connector when I hand the domId in it points to a Canvas.

	var diagram = new go.Diagram(domId);

Any idea how I could create a div and hand over that id?

Thanks!