update editor JS