js syntax error missing close bracket
correct usage of the map function which takes in 2 parameter.