Update JSWrappers.cpp

API change