transfer cookies from cookies.txt format to phantomJS format