Adds javascript to show the active tab on the navigation bar.