fork from http://code.google.com/p/jquerytree/