Added javascript in nav