There are no tricks needed. It should just work if you have no other issues there.
Try to return just html recipe and see if there are no js errors.

You can also prepare for us playground workspace, if you render html and put it there.
We can take then take a look at what could be wrong.
https://playground.jsreport.net/