Workaround for wrong classes on navigation elements after resizing the w...

For responsive behavior this package generates new tree for mobile navigation. After resizing to normal width the elements lost their classes which marked the selected element. So I made a workaround that applies the old classes to the new generated elements from the server.