adding challenge 1 in js