Onclick from DOM-generated menus