Added active class to front displayed element

Added active class to element or li which is on front/displayed.
We can know what is the current active element.
Useful for callback functions