what's the `replace(/"/, '\\"')` part for though?