migrating from phantomjs to cheerio