working on nav javascript