Moved process of copying index.html.