extension for casperjs