JS Editor improvement