Answers.Body: <p>This an old thread, but I just encountered the same problem. In case anyone else lands here, here's what I found:</p>
  
  <p>The issue was that I had a typo in the domain for the URL settings, which I'd defined in civicrm.settings.php. My super-helpful ISP redirects the request to <a href="http://searchassist.verizon.com/main?a-bunch-of-params-including-my-typoed-domain" rel="nofollow">http://searchassist.verizon.com/main?a-bunch-of-params-including-my-typoed-domain</a>. That URL contains HTML, of course, not JavaScript. When the browser gets back HTML from a script src, it throws a parse error.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-27T17:27:29.833Z
Answers.Text: To echo this point: I just encountered this on a WordPress site which was redirecting all 404s to the home page. Under System Settings > Resource URLs, I had a bad value for "Image Upload URL", leading to 404s (and thus returned HTML) for at least some Angular.js scripts.
Answers.UserDisplayName: TwoMice
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-21T22:06:57.807Z
Answers.LastActivityDate: 2016-04-21T22:06:57.807Z
Answers.UserDisplayName: universalhandle
Body: <p>Just did a fresh install of CiviCRM 4.6.5 on Drupal 7.38 and the JQuery/Ajax isn't working. I get the following 2 errors in the Chrome Developer Console:</p>
  
  <pre><code>Uncaught SyntaxError: Unexpected token &lt;  en_US?r=7WtZJ:1
  Uncaught SyntaxError: Unexpected token &lt;  XrTF2AAu:1
  </code></pre>
  
  <p>I have gone through the "Troubleshooting popups, autocompletes, or other javascript problems" document and have verified everything and cleared my Drupal cache.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-30T01:33:07.747Z
Comments.Text: Take a look at your page source - possibly there is a malformed script tag on the page. Search the page source for en_US? and it should find a script tag -- what does it look like?
Comments.UserDisplayName: Coleman
Tags: <ajax>
Title: What's the cause of this "Unexected token" JavaScript error?
ThreadText: # What's the cause of this "Unexected token" JavaScript error?
  
  (Asked by: username_0 on 2015-07-29)
  
  Just did a fresh install of CiviCRM 4.6.5 on Drupal 7.38 and the JQuery/Ajax isn't working. I get the following 2 errors in the Chrome Developer Console:
  Uncaught SyntaxError: Unexpected token <  en_US?r=7WtZJ:1
  Uncaught SyntaxError: Unexpected token <  XrTF2AAu:1
  
  I have gone through the "Troubleshooting popups, autocompletes, or other javascript problems" document and have verified everything and cleared my Drupal cache.
  
  **Tags:** ajax
  
  > **Comments:**
  > **username_1**: Take a look at your page source - possibly there is a malformed script tag on the page. Search the page source for en_US? and it should find a script tag -- what does it look like?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2016-04-21. Score: 1
  
  This an old thread, but I just encountered the same problem. In case anyone else lands here, here's what I found:
  
  The issue was that I had a typo in the domain for the URL settings, which I'd defined in civicrm.settings.php. My super-helpful ISP redirects the request to <http://searchassist.verizon.com/main?a-bunch-of-params-including-my-typoed-domain>. That URL contains HTML, of course, not JavaScript. When the browser gets back HTML from a script src, it throws a parse error.
  
  > **Comments:**
  > **username_3**: To echo this point: I just encountered this on a WordPress site which was redirecting all 404s to the home page. Under System Settings > Resource URLs, I had a bad value for "Image Upload URL", leading to 404s (and thus returned HTML) for at least some Angular.js scripts.  
  
  ---
  
  