Javascript add class mobile nav

it works, but the classes need to be removed after clicking next nav
element.