JS runtime fix. After cocos2d::Application::run, NSApplication needs to be terminated immediately.
Updates cocos2d-x