Instantiated NavTracker object in page <head>, moved helper function setActive into NavTracker object.