changed server.js to reflect renaming edit to editor