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

:construction: 

refs https://github.com/owncloud/core/issues/11532
Just to clarify - we could have a valid plural form in one translation file which would be overwritten by the default function in case no plural form was supplied