code: function tabs(elem) {
  
  		var This = this;
  		this.elem = elem;
  		this.$elem = $(elem);
  		this.$triggers = this.$elem.find('.JS-tabs__trigger');
  		this.$content = this.$elem.find('.JS-tabs__content');
  
  		this.$triggers.click(function (e) {
  			e.preventDefault();
  			switchTab($(this));
  		});
  
  		if (typeof window.localStorage.activeTab !== 'undefined') {
  			switchTab(window.localStorage.activeTab);
  		} else {
  			switchTab(0);
  		}
  
  		function switchTab(tab) {
  
  			var isString = typeof tab === 'string';
  
  			if ($.isNumeric(tab) || isString) {
  				if (isString) {
  					tab = ['classes','mixin','both'].indexOf(tab);
  				}
  				tab = This.$triggers.eq(tab);
  			}
  
  			var pos = tab.parent().index();
  
  			This.$triggers.filter('.' + active_).removeClass(active_);
  			tab.addClass(active_);
  
  			This.$content.hide();
  			This.$content.eq(pos).show();
  
  		}
  	}
docs: module functionality