fixed bug where htmlparser not defined