Added javascript to select tab in page header