functional javascript upto challenge 4