restored script-challenges.js from previous commit