Cleaning up the html code