add retry for casperjs