formatTopNavigation js is now fully functional