making the js code more sane
reduce jumps in the tree during deletion, and fix <a> element width when clicked on
auto expand single children