fix nav javascript