How to call from JS to C++?

How to call from JS to C++?
0.0 0

#1

I have mediation written in C++ (quite huge!), so I want to make call from JS to C++ to save time. I found this http://www.cocos2d-x.org/wiki/How_to_bind_C++_to_Javascript but it seems a bit complicated. Is there any other way to call from JS to C++ like to objective-c or Java?