$("[href]").each(function() {
if (this.href == window.location.href) {
$(this).addClass("active");
}
});
$("[href]").each(function() {
if (this.href == window.location.href) {
$(this).addClass("active");
}
});