I found my answer in another post, sorry to waste the post. For those interested here's the quote:
The solution by vsantola is to add the following code to the end of the tree() function:
for (var i = 1; i < this.a_index.length; i++)
And it works beautifully! Thanks, vsantola.
For more details, pls refer to (http://www.softcomplex.com/forum/viewthread.php?tid=135).
I have added this line to the end of tree.js but it gives me error messages.
I'm trying to implement vsantola's solution. The problem is that the tree_js file is just one long string of code and I have no clue where exactly his code is supposed to go. Can someone help me please?