Javascript rendering of qtree syntax, to HTML5 canvas