add js for nav collapse