Update challenges.js

Removed unused function.