Basic JS drag drop logic.