text: $(document).on('swipeleft', '.ui-page', function(event){
      if(event.handled !== true) // This will prevent event triggering more then once
      {
          var nextpage = $.mobile.activePage.next('[data-role="page"]');
          // swipe using id of next page if exists
          if (nextpage.length > 0) {
              $.mobile.changePage('/en/', {transition: "slide", reverse: false}, true, true);
          }
          event.handled = true;
      }
      return false;
  });
  
  $(document).on('swiperight', '.ui-page', function(event){
      if(event.handled !== true) // This will prevent event triggering more then once
      {
          var prevpage = $(this).prev('[data-role="page"]');
          if (prevpage.length > 0) {
              $.mobile.changePage(prevpage, {transition: "slide", reverse: true}, true, true);
          }
          event.handled = true;
      }
      return false;
  });
  