Clean up html templates