those header and footer templates are created when you use the chrome native header/footer, a simple example for that is available here
i have seen few examples where new templates are added for both header and footer and use before script and append those header and footer with the main template.
those examples are probably using the pdf-utils header/footers which basically involves pdf manipulation which are more powerful than the native chrome header/footers
I created a variable in my program called reportpath and combined it with the filename so that I was able to direct the output report to a specific folder that was separate from the other data.
I would recommend isolating the problem. If you run on prem jsreport locally, put there some kind of explicit delay for 9minutes to a template, and render it with the same client code, does it return properly?
You can just copy-paste the application folder as long as you copy between the same architectures.
For example between windows->windows, ubuntu->ubuntu.
Then run node server.js.
You likely need to use {{{someHtml}}} triple brackets to avoid HTML escaping when embedding code using handlebars. However, please rather create a new forum topic and elaborate more on the details. Thank you.