Offcanvas js refractor for 5.2.1