Update the JS binding code & samples for latest cocos2d engine.