It is included from MediaWiki:Common.js via the line: importScript("MediaWiki:Comments.js");
It isn't exactly "user friendly" in terms of setting it up. It also is obviously not as simple as an extension. Along with the javascript you do need to add a Namespace to the wiki. Instructions on that (if you need it):