adds phantomjs node; improves jQuery wait