add js for navigation bar.