Rendering top nav bar with javascript based on user login status