This version is old school.
Please find jQuery plugins on npm.
MenuMaker - Responsive Navigation Plugin
by Tiberiu Alexandru Butnaru
A small jQuery plugin which allows you to create various types of menus for mobile devices. You can create a menu which can be toggled with a tap on mobile devices, a multitoggle menu or a select list menu.