Fixed code to incorporate changes with jqGrid.