$('li a.firstMenu').each(function(){
if(this.href == window.location.href){
$(this).parent().addClass('active');
}
})
$('li a.firstMenu').each(function(){
if(this.href == window.location.href){
$(this).parent().addClass('active');
}
})