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
Merge commit 'b4779a38fbf3b11b63122827e6fb9386b5ef7d46'