Fixed Phantom shutting down in JS test