js about the submenu 'add'