Modifying javascript-editor to use ES6 validator