Make sure we always update the tree (if present) when we add a new element
Add function to update a node id and its children
Some helper functions
Add support for moving node from jstree