JavaScript TreeView modification