added util function to write html/css to file