collapsing/expanding comment tree. changed js function to something more...

... generic.