do the challenge; passes the tests

Read test.js some more, figured out what it wanted.