@driven said:

@dan rathbun said:

The error is a simple typo

It may well have the typo, but when I ran his 'working bits' in the clean wd, it also has JS issues...

Could be that he's using a double-quoted heredoc instead of a single-quote heredoc wrapper ??