Reorganize $menu.on(click, ...) section.