passing redirected url to phantomjs