addFirstLastClasses: Add it to widgets via $.extend, not $.widget, because it does not use any widget factory features.