tree changes with nodejs