Fixed challenge.js to pass mocha test