Same as in Double Slider, I think 

    cfg.attributes = cfg.attributes || {};
    cfg.attributes.classList = cfg.attributes.classList || []; 

is more readable.