update $.cookie
update to fancytree