model.save(function (err) { if (err) throw err; col.push(model); menu.add(model); });
graphs.each(function (graph) { menu.add(graph); });