syntax error in the phantomjs script, fixed for good