Adding JSON.stringify support for old browsers. Using JSON.stringify to create parameters for requests from objects to avoid escaping issues.
Replacing string concatenation with JSON.stringify.