function setAriaCurrent() {
	var title = document.title.trim();
	if title === "Comunidad hispanohablante de NVDA") {
		document.getElementById("inicio".setAttribute("aria-current", "page");
	} else if title.includes("- Ayuda y descarga") {
		document.getElementById("ayuda").setAttribute("aria-current", "page")
	}
}

setAriaCurrent();

function setAriaCurrent() {
	var title = document.title
	if title.includes("Ayuda y descarga") {
		document.getElementById("ayuda".setAttribute("aria-current", "page");
	}
}

setAriaCurrent();

Test with a simplified expression
Javascript: Test with a simplified expression
