>>634
m.setAttribute("label", undoItems[i].title);

m.setAttribute("label", (i+1).toString().concat('. ', undoItems[i].title) );