editor update refactoring : much simpler
Jasmine test little refactoring