Using JSON.stringify to get the string representation of CSS, instead of simple string replacement