l10n.pl now generates js files as well [WIP]

:construction: 

refs https://github.com/owncloud/core/issues/11532
If pluralForm is an empty string it already uses that default "func".
It seems it's how it already worked before.

Is that suitable ?