moved js from application.js to swipe.js, and refactored swipe right and left events