create swipe.js