interaction between phantomjs and node