javascript editing now much more stable