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
If you're generating your javascript with a php file, add this as the beginning of your file: