Learn ethical hacking from scratch, java injection not working

Hi, using bettercap and adding Zaid’s javascript download or my own copy, it will not load running bettercap. Following chapter 12, injecting java script code. I have it in my kali home directory and added the code to hsthsijack.payloads with a ,*:/root/alert.js. The only code loaded when I run it is the first one that is already listed (keylogger.js). Could use some help, thanks

Zaid used alert (‘javascript test’);
It should be alert (“javascript test”); in your alert code
The mistake was by not using " " in your code