Cleanup layout's HTML