Bug: javascript error when processing return values from jQuery.ajax() call.