title: Ajax.request throws a syntax error, but returns the correct value
body: <p>I have a bunch of Ajax requests that execute just fine, but I end up with a syntax error in my browser.  </p>
  
  <p>Can anyone see what's wrong with my request below?</p>
  
  <pre><code>function getName(refId)
  {
      var resp = '';
      new Ajax.Request('/servlet/GetName',
      {
          method:'post',
          parameters: {'requestType':'ref',
                   'value':refId},
          onSuccess:function(transport)
          {
              setName((String(transport.responseText)).trim());
          }
      });
  }
  </code></pre>
  
  <p>edit: This also seems to only throw the error the first time it gets called.  If I clear the console, I don't continue to get errors.</p>