In FF and all, my javascript works fine. But in Chrome it gives this message:
Resource interpreted as script but transferred with MIME type text/plai
I had the same error and finally (in my particular case) I found a problem in the deployment descriptor (web.xml)
The problem:
SessionController / ... /
the solution:
SessionController /SessionController ... desktop.jsp