new JS for editors