[phantomjs] add cookie support