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/plain."
It means that the server is sending an Javascript HTTP response with content-type:text/plain.
MIME typeがないのでは?