Update swipe-events.js