functional javascript upto challenge 10