Looks like this question had a similar issue. The solution was do something like this:
document.addEventListener("deviceready", function(){
$('#screen1').bind('swipeleft',showNext); //show next hides screen1, shows screen2
$('#screen2').bind('swiperight',showPrev);//show prev hides screen2, shows screen1
},false);
Or perhaps you simply need to define the function onDeviceReady
BEFORE you call the event listener.