JS allocation hacks on MKConnection