Addition of code previously used in the index.html file