fix bug in javascript i18n