#50 Scripting templating of top nav bar and implentation of the function buildTopNavBar