Clean up HTML templates