Apologies in advance - this is such a fundamental question:
Why are swipeleft and swiperight not working? 

```
(function() {
    $('img').on('swiperight', swipeRight);
    function swipeRight(myEvent){ 
        myEvent.stopPropagation();
        alert('swipeRight');
    };

    $('img').on('swipeleft', swipeLeft);
    function swipeLeft(myEvent) { 
        myEvent.stopPropagation();
        alert('swipeLeft');
    };
})();

```

I've loaded jQuery, but do I need to load a entire library like jQuery Mobile or Angular?
I just want to slide from 1 picture to the next.