scripts to make work correctly jstree