Fix syntax error in phantomjs