working example of dynamically setting class=active based on requested url