Modified code in jQGrid to improve efficiency