"Too many errors. (91% scanned)."

I have seen that before. Is there another error anywhere? If so fix that first.

If that is the only error then there is probably a catastrophic syntax error in your program somewhere. Javascript is a multi-scan compiler so it could be anywhere. Look for unmatched {, [, and ".

One way to find it is to comment out large sections of code then uncomment it in small sections until you find the spot that is causing the problem. Use /* and */ to start and end comment section easily.