updated challenge.js so that mocha test spec.js passed