Modularization of index.html file.