modified challenge.js