2nd possible edit for jquery and html: moved foreach loop outside contact field set.