code: function evalString(text) {
        if (text.lastIndexOf('\\') < 0)
          return text;
        return text.replace(/\\\\/g, '\\')
                   .replace(/\\n/g, '\n')
                   .replace(/\\r/g, '\r')
                   .replace(/\\t/g, '\t')
                   .replace(/\\b/g, '\b')
                   .replace(/\\f/g, '\f')
                   .replace(/\\{/g, '{')
                   .replace(/\\}/g, '}')
                   .replace(/\\"/g, '"')
                   .replace(/\\'/g, "'");
      }
docs: handle escaped characters (backslashes) in a string