Using the cleaned template objects for client-side usage