html, js restore