js syntax error missing close bracket
correct usage of the map function which takes in 2 parameter.
Merge pull request #6 from adrianchen19888/master

Fixes js errors