Rename idVisitor param to visitorId in getVisitList AJAX calling code.