Changed the second argument of all JSON.Stringify from empty string to 'null' 
Otherwise IE8 complains there isn't a valide replacer.