Adding Javascript to TemplateManager not working in 3.4.0.10

Describe the issue or problem
I am trying to add Javascript to a template, but whereas it used to worki in 3.3, in 3.4 it stopped working. Adding CSS is not a problem.

Steps I took leading up to the issue
Adding jquery:

$templateMgr->addJavaScript(‘jQuery’, $request->getBaseUrl() . ‘/lib/pkp/lib/vendor/jquery/ui/external/jquery/jquery.js’);

does not work at all.

I have added the scripts to the template myself, with a {literal} block, but of course, this is not the best solution.

What application are you using?
3.4.0-10

Additional information
The following only are visible

but for css, it works.: