Updated phantomjs script for new connect version