Fixed javascript for nav