correct js navbar problem