rewrite sax(npm) code with cheerio(npm)