Code to write HTML file added