Added jquery mobile and swipe detection