Stupid mistakes with JSON.stringify()