adds JS generator for I18n files, improves I18n JS API