Hammerhead is a quick (and, presently, somewhat dirty) jQuery plugin to detect object collisions and move them out of the way.