Implemented JQuery to handle collapse navbar