adding a jquery version of the dnd code