simplify HtmlHelper; add error event
rearrange export object
fix for precompile method