Fixed JS string escaping for setting Request Headers and avoid removing all headers