fixed the swipe js