Javascript for drag and drop "swipe" positions