// remove extraneous br tags from tabs
$('.nls_tabs .tab-links').children('br').remove();
// set first tabs as active
$('.nls_tabs .tab-content div.nls_tab:first-child').addClass('active');
// instantiate tabs
$('.nls_tabs .tab-links a').on('click', function(e) {
var currentAttrValue = $(this).attr('href');
$('.nls_tabs ' + currentAttrValue).show().siblings().hide();
$(this).parent('li').addClass('active').siblings().removeClass('active');
e.preventDefault();
});
// hash tags for tabs
$('.nls_tabs ul.tab-links li a[href^="' + window.location.hash + '"]').parent('li').addClass('active').siblings().removeClass('active');
$(window.location.hash).show().siblings().removeClass('active');