add navbar collapse on click js for mobile view