Fixed semicolons in js.
makes tree traversal function more general.
Makes nodes with more children more prominent in mmd onto vis.