edit swipe.js