Adding solution for casperjs assignment