cocos2dx javascript binding snippet