Making phantom readyness checking behave more like jsdom