Wait in a different place for phantomjs to finish.