use Perl instead of Java as a base language for JS files; rebase translations