deepClone() replaced with JSON.stringify+parse