Fix for PhantomJs in Travis