EditView refactoring for Node.js