Fold/Unfold table rows(tree structure) using jquery and smarty