Fixed script to be run using phantom rather than chrome