phantomjs was failing, not sure why but this works