I tried this method, all that happened is the active class got added to each list element upon page load, clicking the list items did change the track, but the active class did not change? Sorry, commented before you added Alternate Solution, which I will try now.
– Grant G