saving itemcollections - a bit of xhr callback hell