As far as "extending" goes though, it's not always clear. Is a date picker extending jquery's core? I personally think not, but there has evolved an expectation that every web component must be initialized like so:
$('#container').doSomething();
So I suppose a lot of people do it that way just to have a familiar look to their API, or even just to show up in listing as a jquery plugin.