jQuery problem on iis server

jQuery problem on iis server

I just took over a project written in php using jQuery. I need to do some edits so I moved a copy of the files that were working in production to our test server. Now, with no other changes, the jQuery function below is not working. Our test site and production site are set up on the same iis server (Windows Server 2008 R2).

function preFill(voterID) {
$('#txtVoterID').val(voterID);
$('#dialog-voter-search').dialog("close");
$.post("engine.php", {act: 2, vi: voterID}, function(data) {
$('#txtNameF').val(TitleCase(data.FIRST_NAME));
$('#txtNameM').val(TitleCase(data.MIDDLE_NAME));
$('#txtNameL').val(TitleCase(data.LAST_NAME));
$('#txtNameS').val(TitleCase(data.NAME_SUFFIX));
sMessage('#s1message',"Data prefilled");
}, "json");
}

I am getting no console errors using Chrome, and as I said, it works find when loaded to the same browser from production. Any thoughts on what is causing this? Thanks!