process user(s)
.each(data, function(i, pos) { // ...try to find a box with the corresponding id var box = $('#'+pos.name); if (box.length>0) { // if we already have a box, move it smoothly // to the new coords. box.animate({ top: pos.y, left: pos.x, }, 70, "swing");