That official instruction is outdated, you should tell CoolMathGames that.
.
"Browser Execute Javascript" is an old method. I think you should use inline scripts - see my fist comment in this post about how to add them.
Also, click on the Coolmath.js script in the project and on the left toolbar choose its purpose: "Import for events".