Added i18n support for JavaScript