Changed to use HTML5 canvas

also to read vertices and render directives from XML