Halfway done with function for creating an html file