fix javascript nav