Adding remove and toggle class functions
Adding function to replace repeated lines
Removed repeated exit-offcanvas handler
Syntax error fix
Enable clicks inside offcanvas
Merge pull request #4728 from NikhilKalige/offcanvas-js-refractor-5.2.1

Offcanvas js refractor for 5.2.1