The error indicates JD is unable to locate "terminal-notifier". Please modify the following variable in the script to set the correct path.
Code:
var notifier = "./terminal-notifier.app/Contents/MacOS/terminal-notifier"; // <- Set path to "terminal-notifier"