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

:construction: 

refs https://github.com/owncloud/core/issues/11532
In case pluralForm is an empty string/null we should not try to generate a function and add it