code: function init() {
        if ($el.hasClass('horizontal')){
          scrollDirection = 'horiz';
          scrollOffsetAttr = 'scrollLeft';
          sizeAttr = 'width';
          offsetAttr = 'left';
        }
  
        $el.prepend('<div class="tse-scrollbar"><div class="drag-handle"></div></div>');
        $scrollbarEl = $el.find('.tse-scrollbar');
        $dragHandleEl = $el.find('.drag-handle');
  
        if (options.wrapContent) {
          $contentEl.wrap('<div class="tse-scroll-content" />');
        }
        $scrollContentEl = $el.find('.tse-scroll-content');
  
        resizeScrollContent();
  
        if (options.autoHide) {
          $el.on('mouseenter', flashScrollbar);
        }
  
        $dragHandleEl.on('mousedown', startDrag);
        $scrollbarEl.on('mousedown', jumpScroll);
        $scrollContentEl.on('scroll', onScrolled);
  
        resizeScrollbar();
  
        $(window).on('resize', function() {
          recalculate();
        });
  
        if (!options.autoHide) {
          showScrollbar();
        }
      }
docs: Initialize plugin