Change drag/drop loops to jquery .each().