Move validation from setting time to before refresh
Add dirty checking feature.
Change API of html.partial: let user define partial via Js, not HTML