updated criticalJs template to loop through the list