saveProject = (project) => {
const sourceIds = project.getSourceIds();
const sources = sourceIds.map(sourceId => ({source: project.getSource(sourceId), continues: project.getContinues(sourceId), id: sourceId}));
const text = JSON.stringify(sources);
return DOM.download(new Blob([text]), "myproject.json", "Download Project");
}