Do we need js here? Could we not instead put `active` in the html (possibly using templating)? Sorry if I'm misunderstanding something.