updated tree
fixed javascript syntax