refactoring. create index.html with minify page