small update to nav javascript