htdocs: refactoring and improving web archive