CLEANUP: used tidy to clean up the HTML