created node wrapper for phantomjs