https://esgsw.it/html/answered-html-simplifying-javascript-which-adds-an-active-class-according-to-url-dry/