Clean up HTML template