Progress

First Ajax and loop complete.  Second still has errors.