fix edit language javascript issue