Generate a PDF Copy of the Man Page for a Shell Command

In "Browse Bash command man page(s).kmmacros", aren't in the code:

osascript -l JavaScript <<JXA_END 2>/dev/null
(function(strFolderVar) {
  function l(a, b) {
    b = b || strFolderVar;

a JavaScript code?

The macro "Shell manual page for command (as PDF).kmmacros" run yet perfectly by changing the destination folder from ~/Documents/Man page PDFs (via Keyboard Maestro) to ~/Documents/man-page-PDF. So I think there was a problem because my first destination folder contained spaces in the name.

I have never used the Script Editor.app with the Javascript language. What must I paste to the Script Editor.app (with JavaScript instead AppleScript setting in the window) to test the code? I tried with all the code in the "Execute shell script" action, except the first and the last line (so no osascript -l JavaScript <<JXA_END 2>/dev/null nor JXA_END) and the script compile, and display a window with a big list of 245 commands.
So why doesn't run it in the macro?

(text edited: previously, when pasted in the Script Editor.app, I forgot a ( at the beginning).