breaking out the navbar into its own js file