var urlNow = window.location.pathname.split('/').join(' ');
$(".nav a").each(function(){
var hrefLink = $(this).attr('href');
var findConsilience = urlNow.indexOf(hrefLink);
if(findConsilience > 0){
$(this).addClass('item-active');
}
});
<a href="contacts.html">...</a>