a demo for cocos2d-x JS