Update swipe.js

Fix previous commit errors