ajax for each loop

WIP