semi-working code for getting the html files from wayback