added javascript message in nav bar