jQuery stopping Popup Pro from working

Look for this script in the child theme functions.php:

<script type="text/javascript">
jQuery(document).ready(function ($) {

$(".eventList").find("a").addClass("anchor");

$('.eventList li').each( function(i,v)
{
if($(this).find('time').attr('datetime').substring(0,10) ==
$(this).next().find('time').attr('datetime').substring(0,10))
{
$(this).next().children('.wpmudevevents-date:first').hide();
$(this).next().addClass('not-first');
}
})
});
</script>

---

This is stopping the popup pro from working. If I remove this code then the popup pops up and works.

The jQuery above is code that was supplied to me by you guys here a few months ago. Any help would be appreciated.