$(result).find("command > *").each(function(index, e) {
if ($(e).is("note")) {
addNote("#output", $(e).text(), $(e).attr("type"));
$(result).find("command > *").each(function(index, e) {
if ($(e).is("note")) {
addNote("#output", $(e).text(), $(e).attr("type"));