Can't target thumbnails

Can't target thumbnails

Here is my site:
I need to alert when any of the thumbnails gallery images(right to the main image) is clicked like so:

$('ul.slides li').each(function() {
    $(this).on("click", function(){
     alert('thumbnail clicked');
 });

But this doesn't happen..
Can someone advise please?
Thx