added support for i18n in javascript files