fixed the swipeJS problem