draw boxes text and arrows.

I was using a webCanvas to draw a UML Sequence Diagram.
However I found it to be way too slow.

What else could I use?
Are there drawing primitives in html(5) I could be using and create my web page source manually and just display it in a html viewer?