This line will work as long as the page is in English, but for other languages the text would not match the section-id string. I'd suggest adding either a CSS class or data attribute to the nav-menu items in the HTML template that you could use for comparison instead.