Add javascript solution to challenge 3