added fold/unfold class toggle.
added the new toggle js code