added javascript to be able to select the current tab on the navigation menu