Rewritten refrest analyzer from XHTML to HTML5