$('nav a[href="' + window.location.pathname + '"]').addClass('current');

