added support for casperjs