download and register casperjs and phantomjs