Updating tojs/cocos2dx.ini, visit needs to be exposed to JS since it's used for RenderTexture.