Broke up CG_Init to enable JS event loop to breathe