self made javascript game running on cocos2d platform.