ajax returning object, need to splice with loop