added code to add/remove 'active' class on refresh
Merge pull request #16 from aamaliaa/refreshfix

Code to add/remove 'active' class on refresh.