added javascripts for navbar