js trouble with HtmlParser