Added event listener for DOMNodeInserted
Minor fix.
Fixed dublicate menuitem error. Don't create menus with undefined id