Javascript code to draw binary trees.