how to create dynamic menu and submenu in jquery