New version with event data for callback

- Added a new event: swipeend
- Updated code to pass event data to callback.