added js-support for backbone and trees. bugfix resources-tree.json