i don't think JSON.stringify is cross browser. http://caniuse.com/json