https://wikimass.com/js/node-getrootnode