allow cheerio object to be passed as an argument