configurable i18n js_root
small refactor