fix memory leaks, use cheerio instead of jsdom