What's the cause of this "Unexected token" JavaScript error?
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.