A demo with cocos2d-x JS