modified challenge.js to pass tests.