Removes unnecessary files and updates index.html