script for casperjs testing