modified challenge.js to pass test