Added Chapter 8 code and the related changes to index.html