syntax error in the phantomjs script