Fix problems that can not display I18N messages in Javascript.

Please pull this.