Thread:Thisismyrofl/@comment-6510262-20131117022506/@comment-1330470-20131118165241

Yes, that's the Javascript needed for the old, deprecated version of collapse (in which an element has  rather than  ). If you updated the syntax to the second, new format (beginning with mw-) it would work with no additional code. No need to worry about that excessively, though, if it already works.