a exercise that embed the javascript into C++ using SpiderMonkey