We use this script on another page on the website, and it works.
The issue can be seen at https://writebrainbooks.com/book-builder-plain_dev.php?prodid=322&bid=61aC7gAL7Z&refid=11584
I ended up replacing the include.js, and that fixed it.