Update JSWrappers.cpp

API change
Merge pull request #445 from remoe/patch-6

Compile error fix: JSWrappers.cpp