refactored tab-nav js into separate file